package com.sky.mapper.user;

import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Mapper
@Repository("userDishMapper")
public interface DishMapper {

    List<DishVO> selectDishByCategoryId(Long categoryId);

    @Select("select count(*) from dish where status = #{status};")
    Integer overviewDishes(HashMap<String, Integer> statusMap);
}
